{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2023年10月5日是这一年的第 278 天。\n",
      "5 是质数\n",
      "1000以内共有 168 个素数。\n"
     ]
    }
   ],
   "source": [
    "import functions_module\n",
    "\n",
    "day_number = functions_module.get_day_of_year(2023, 10, 5)\n",
    "print(f\"2023年10月5日是这一年的第 {day_number} 天。\")\n",
    "\n",
    "prime = functions_module.is_prime(5)\n",
    "if prime:\n",
    "    print(f\"5 是质数\")\n",
    "else:\n",
    "    print(f\"5 不是质数\")\n",
    "\n",
    "primes = functions_module.find_primes(1000)\n",
    "print(f\"1000以内共有 {len(primes)} 个素数。\")"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
